<?php
/**
 * 缓存单位测试
 * 缓存控制器
 */

class Cache extends Controller 
{
	public function index()
	{
		/*加载缓存功能类*/
		$cache = Loader::cache('File');
		
		if ($cache->is_set('test')) {
			$array = $cache->get('test');
		}else{
			$array = array(
				0 => 'test',
				1 => 'look here!',
			);
			$cache->set('test', $array);
		}
		
		var_dump($array);
	}
}